package control
{
	import com.adobe.cairngorm.control.FrontController;
	
	import command.AuthenticateUserCommand;
	import command.LevelsManagerCommand;
	import command.QuestionsManagerCommand;
	import command.SaveStatsCommand;
	import command.SolutionManagerCommand;
	
	import event.TriviaEvent;

	public class TriviaController extends FrontController
	{
		public function TriviaController()
		{
			super();
			addCommands();

		}
		private function addCommands():void
		{
			addCommand(TriviaEvent.TRIVIA_LEVELS,LevelsManagerCommand);
			addCommand(TriviaEvent.TRIVIA_QUESTIONS,QuestionsManagerCommand);
			addCommand(TriviaEvent.TRIVIA_SEND_SOLUTIONS,SolutionManagerCommand);
			//addCommand(TriviaEvent.TRIVIA_URL_AUTHENTICATE_USER,AuthenticateUserCommand);
			addCommand(TriviaEvent.TRIVIA_GET_USER,AuthenticateUserCommand);
			addCommand(TriviaEvent.TRIVIA_EVENT_SAVE_STAT,SaveStatsCommand);
			
		}

	}
}